﻿using Architecture.Repository.Interface.Traceability;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Traceability.Domain;

namespace Architecture.Repository.Impl.Traceability
{
    public class ShoppingNameRepository : BaseRepository<ShoppingName>, IShoppingNameRepository
    {
        public ShoppingNameRepository(EFCoreContext context) : base(context)
        {

        }

        /// <summary>
        /// 添加商品名称
        /// </summary>
        /// <param name="shoppingName">商品名称实体</param>
        /// <returns>返回受影响的行数</returns>
        public async Task<int> AddShoppingName(ShoppingName shoppingName)
        {
            return await base.AddAsync(shoppingName);   
        }

        /// <summary>
        /// 获取商品名称列表
        /// </summary>
        /// <returns>返回商品名称列表</returns>
        public async Task<List<ShoppingName>> GetShoppingName()
        {
            return await base.GetAllAsync();
        }


    }
}
